package com.hp.his.charts.xml;

import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

/**
 * multi-series charts are charts where you compare multiple series of data.
 * */
@XmlRootElement(name = "chart")
// 指定子节点的顺序
@XmlType(propOrder = { "categories", "dataSets" })
public class MultiSeriesChart extends BasicChart {

	private List<Category> categories;
	
	private List<DataSet> dataSets;

	@XmlElementWrapper(name = "categories")
	@XmlElement(name = "category")
	public List<Category> getCategories() {
		return categories;
	}

	public void setCategories(List<Category> categories) {
		this.categories = categories;
	}

	@XmlElement(name = "dataset")
	public List<DataSet> getDataSets() {
		return dataSets;
	}

	public void setDataSets(List<DataSet> dataSets) {
		this.dataSets = dataSets;
	}
	
}
